//
//  Config.h
//  EasyNotes
//
//  Created by 劉裕 on 23/5/2016.
//  Copyright © 2016年 劉裕. All rights reserved.
//

#ifndef Config_h
#define Config_h

// 各种frame
#define kScreenBounds [UIScreen mainScreen].bounds
#define kScreenWidth [UIScreen mainScreen].bounds.size.width

// 单例宏
#define kUserDefaults [NSUserDefaults standardUserDefaults]
#define kNotificationCenter [NSNotificationCenter defaultCenter]

// 抽屉字符串
#define OpenDrawer @"leftdrawer_open"
#define CloseDrawer @"leftdrawer_close"
#define ToggleDrawer @"leftdrawer_toggle"

// 状态栏
#define kLightStatusBarStyle [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
#define kDefaultStatusBarStyle [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;

// 颜色相关
#define LIUColor(r, g, b, a) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:(a)]
// 随机色
#define LIURandomColor LIUColor(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256), 1.0)

// 自定义NSLog
#ifdef DEBUG
#define LIULog(...) NSLog(__VA_ARGS__)
#else
#define LIULog(...)
#endif

#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self;

#endif /* Config_h */
